import httpProxy from "../utils/request"; // 拿到我们刚封装的axios
import { URL } from "../config";

export async function departmentList(data) {
  return await httpProxy({
    url: `/admin/base/sys/department/list`,
    method: "POST",
    data,
  });
}

export async function addDepartment(data) {
  return await httpProxy({
    url: `/admin/base/sys/department/add`,
    method: "POST",
    data,
  });
}
